<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>layout布局页面</title>
    <script type="text/javascript" src="../js/jquery-1.8.3.js" ></script>
    <script type="text/javascript" src="../js/easyui/jquery.easyui.min.js" ></script>
    <script type="text/javascript" src="../js/easyui/locale/easyui-lang-zh_CN.js" ></script>
    <script type="text/javascript" src="../js/ztree/jquery.ztree.all-3.5.js" ></script>
    <link rel="stylesheet" href="../js/easyui/themes/default/easyui.css" />
    <link rel="stylesheet" href="../js/easyui/themes/icon.css" />
	<link rel="stylesheet" href="../js/ztree/zTreeStyle.css" />    
    <script type="text/javascript">
    	$(function(){
    		/*$("#vv").validatebox({
    			required:true,validType:'email'
    		});*/
    		$.extend($.fn.validatebox.defaults.rules, { 

				equals: { 
				
					validator: function(value,param){ 
					
						return value == $(param[0]).val(); 
						
					}, 
					
					message: 'Field do not match.' 
				
				} 
				
			}); 
			
			$("#save").click(function(){
				if($("#standardForm").form("validate")){
					alert("过关");
					$("#standardForm").submit();
				}else{
					alert("不过关");

				}
			});


    		
		});
    </script>
</head>
<body>
		<!--<input id="vv" type="text" name="name" class = "easyui-validatebox" />
		<input type="text" name = "minWeight" class="easyui-numberbox" data-options="required:'true'"/>
		<select id="cc" class="easyui-combobox" name ="dept" style="width: 200;">
			<option value="aa">item1</option>
			<option value="bb">item2</option>
			<option value="dd">item3</option>
		</select>
		<input id="dd" type="text" class="easyui-datebox" required="required"></input> -->
		
		<form id="standardForm" action="../pages/base/standard.html">
			<input id="pwd" name="pwd" type="text" class="easyui-validatebox" data-options="required:true" /> 

			<input id="rpwd" name="rpwd" type="text" class="easyui-validatebox" required="required" validType="equals['#pwd']" /> 
		</form>
		<input type="button" name="save" value="保存" id="save" />

</body>
</html>
